import request from "@/utils/request";

// 查询库存数量
export function listBiZhiPuApi(query) {
  return request({
    url: "/openAI/BiZhiPuApi/list",
    method: "get",
    params: query,
  });
}
// 查询库存数量
export function inventoryByProductNo(query) {
  return request({
    url: "/product/jushuitang/inventoryByProductNo/",
    method: "get",
    params: query,
  });
}
// 查询库存数量
export function inventory(query) {
  return request({
    url: "/product/jushuitang/inventory/",
    method: "get",
    params: query,
  });
}
// 查询库存数量
export function getSizeList(query) {
  return request({
    url: "/product/InventoryQueryTemp/getSizeList",
    method: "get",
    params: query,
  });
}
// 查询库存数量
export function listInventoryQueryTemp(query) {
  return request({
    url: "/product/InventoryQueryTemp/list",
    method: "get",
    params: query,
  });
}
// 查询库存数量
export function talentBatchMatchCalc(query) {
  return request({
    url: "/product/talentmatch/talentBatchMatchCalc",
    method: "get",
    params: query,
  });
}
// 查询库存数量
export function talentMatchCalc(query) {
  return request({
    url: "/product/talentmatch/talentMatchCalc",
    method: "get",
    params: query,
  });
}
// 查询库存数量
export function deleteMathByTracingNumber(query) {
  return request({
    url: "/product/talentmatch/deleteMathByTracingNumber",
    method: "get",
    params: query,
  });
}
// 查询达人信息列表
export function selectTalentNameList(query) {
  return request({
    url: "/product/sample/selectTalentNameList",
    method: "get",
    params: query,
  });
}

// 查询达人信息列表
export function selectTalentInfoList(query) {
  return request({
    url: "/product/sample/selectTalentInfoList",
    method: "get",
    params: query,
  });
}
// 查询达人信息列表
export function selectSelfTalentInfoList(query) {
  return request({
    url: "/product/sample/selectSelfTalentInfoList",
    method: "get",
    params: query,
  });
}
// 查询达人信息列表
export function talentStatistics(query) {
  return request({
    url: "/product/sample/talentStatistics",
    method: "get",
    params: query,
  });
}
// 查询达人信息列表
export function selectTalentByLabel(query) {
  return request({
    url: "/product/sample/selectTalentByLabel",
    method: "get",
    params: query,
  });
}
// 查询达人信息列表
export function listSample(query) {
  return request({
    url: "/product/sample/list",
    method: "get",
    params: query,
  });
}
// 查询达人信息列表
export function listNoInfo(query) {
  return request({
    url: "/product/sample/listNoInfo",
    method: "get",
    params: query,
  });
}
// 查询达人信息详细
export function getSample(id) {
  return request({
    url: "/product/sample/" + id,
    method: "get",
  });
}
// 新增达人信息
export function batchDistributionTalent(data) {
  return request({
    url: "/product/sampleApply/batchDistributionTalent",
    method: "post",
    params: data,
  });
}
// 新增达人信息
export function SampleGiftBatchApply(data) {
  return request({
    url: "/product/sampleApply/SampleGiftBatchApply",
    method: "post",
    data: data,
  });
}
// 新增达人信息
export function addSample(data) {
  return request({
    url: "/product/sample",
    method: "post",
    data: data,
  });
}
// 新增达人信息
export function talentBlockRelease(data) {
  return request({
    url: "/product/sample/talentBlockRelease",
    method: "post",
    params: data,
  });
}
// 新增达人信息
export function viewEdit(data) {
  return request({
    url: "/product/SampleAfterSalesOrder/viewEdit",
    method: "put",
    data: data,
  });
}
// 新增达人信息
export function addByStock(data) {
  return request({
    url: "/product/SampleAfterSalesOrder/addByStock",
    method: "post",
    data: data,
  });
}
// 新增达人信息
export function SampleTalentFirstAdd(data) {
  return request({
    url: "/product/sampleApply/SampleTalentFirstAdd",
    method: "post",
    data: data,
  });
}
// 修改达人信息
export function updateSample(data) {
  return request({
    url: "/product/sample",
    method: "put",
    data: data,
  });
}

// 删除达人信息
export function delSample(id) {
  return request({
    url: "/product/sample/" + id,
    method: "delete",
  });
}
